package com.heima.tanhua.mapper;

import com.heima.tanhua.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {




    User selectByPhone(@Param("phone") String phone);

    boolean insert(@Param("user") User user);

    User selectById(@Param("userId") String Id);

    boolean updateById(@Param("user") User user);

    boolean updateUserById(@Param("user") User user);


    List<User> selectByIds(@Param("idList") List<String> idList ,
                           @Param("page") Integer page,
                           @Param("pageSize") Integer pageSize);
}
